package com.example.demo.util;

import lombok.Data;

/**
 * Created by Administrator on 2018/10/11 0011.
 */
@Data
public class ResultVo {
    public static Result success(Object object){
        Result result = new Result();
        result.setStatus(true);
        //result.setInquiryNo("不能为空");
        result.setData(object);
        return result;
    }
    public static Result error(String errorCode, String massage){
        Result result = new Result();
        result.setStatus(false);
        //result.setInquiryNo("不能为空");
        result.setErrorCode(errorCode);
        result.setMessage(massage);
        return result;
    }
}
